package cn.jjxx.modules.portal.dto;

import cn.jjxx.core.utils.StringUtils;
import cn.jjxx.modules.sys.entity.User;
import cn.jjxx.modules.sys.utils.DictUtils;

import java.util.Date;

/**
 * 门户劳务需求列表DTO
 * @author mali
 */
public class PortalRecruit {
    private String id;
    /**工作名称*/
    private String jobName;
    private String jobType;
    private String jobContent;
    /**工期*/
    private Double schedule;
    /**工期单位*/
    private String scheduleType;
    /**工期单位*/
    private String scheduleTypeName;
    /**省*/
    private String province;
    /**市*/
    private String city;
    /**区县*/
    private String county;
    /**招聘人数*/
    private Integer number;
    /**工作时间-开始*/
    private String workTimeBegin;
    /**工作时间-结束*/
    private String workTimeEnd;
    /**工资待遇*/
    private Double salary;
    /**工资单位*/
    private String salaryType;
    private String salaryTypeName;
    /**工作福利*/
    private String workWelfare;
    /**到岗时间*/
    private Date arrivalTime;
    /**联系人*/
    private String contacts;
    /**联系电话*/
    private String phone;
    /**状态*/
    private Integer status;
    /**发布时间*/
    private Date createDate;
    /** 创建者 */
    private User createBy;
    private String workPlaceProvince;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getJobName() {
        return jobName;
    }

    public void setJobName(String jobName) {
        this.jobName = jobName;
    }

    public String getJobContent() {
        return jobContent;
    }

    public void setJobContent(String jobContent) {
        this.jobContent = jobContent;
    }

    public String getJobType() {
        return jobType;
    }

    public void setJobType(String jobType) {
        this.jobType = jobType;
    }

    public Double getSchedule() {
        return schedule;
    }

    public void setSchedule(Double schedule) {
        this.schedule = schedule;
    }

    public String getScheduleType() {
        return scheduleType;
    }

    public void setScheduleType(String scheduleType) {
        this.scheduleType = scheduleType;
    }

    public String getScheduleTypeName() {
        if (StringUtils.isNotBlank(this.scheduleType)) {
            this.scheduleTypeName = DictUtils.getDictLabel(this.scheduleType.toString(), "unitType", "");
        }
        return scheduleTypeName;
    }

    public void setScheduleTypeName(String scheduleTypeName) {
        this.scheduleTypeName = scheduleTypeName;
    }

    public String getProvince() {
        return province;
    }

    public void setProvince(String province) {
        this.province = province;
    }

    public String getCity() {
        return city;
    }

    public void setCity(String city) {
        this.city = city;
    }

    public String getCounty() {
        return county;
    }

    public void setCounty(String county) {
        this.county = county;
    }

    public Integer getNumber() {
        return number;
    }

    public void setNumber(Integer number) {
        this.number = number;
    }

    public String getWorkTimeBegin() {
        return workTimeBegin;
    }

    public void setWorkTimeBegin(String workTimeBegin) {
        this.workTimeBegin = workTimeBegin;
    }

    public String getWorkTimeEnd() {
        return workTimeEnd;
    }

    public void setWorkTimeEnd(String workTimeEnd) {
        this.workTimeEnd = workTimeEnd;
    }

    public Double getSalary() {
        return salary;
    }

    public void setSalary(Double salary) {
        this.salary = salary;
    }

    public String getSalaryType() {
        return salaryType;
    }

    public void setSalaryType(String salaryType) {
        this.salaryType = salaryType;
    }

    public String getSalaryTypeName() {
        if (StringUtils.isNotBlank(this.salaryType)) {
            this.salaryTypeName = DictUtils.getDictLabel(this.salaryType.toString(), "unitType", "");
        }
        return salaryTypeName;
    }

    public void setSalaryTypeName(String salaryTypeName) {
        this.salaryTypeName = salaryTypeName;
    }

    public String getWorkWelfare() {
        return workWelfare;
    }

    public void setWorkWelfare(String workWelfare) {
        this.workWelfare = workWelfare;
    }

    public Date getArrivalTime() {
        return arrivalTime;
    }

    public void setArrivalTime(Date arrivalTime) {
        this.arrivalTime = arrivalTime;
    }

    public String getContacts() {
        return contacts;
    }

    public void setContacts(String contacts) {
        this.contacts = contacts;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public Date getCreateDate() {
        return createDate;
    }

    public void setCreateDate(Date createDate) {
        this.createDate = createDate;
    }

    public User getCreateBy() {
        return createBy;
    }

    public void setCreateBy(User createBy) {
        this.createBy = createBy;
    }

    public String getWorkPlaceProvince() {
        return workPlaceProvince;
    }

    public void setWorkPlaceProvince(String workPlaceProvince) {
        this.workPlaceProvince = workPlaceProvince;
    }
}
